import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import About from '../views/About.vue'
import Search from '../views/Search.vue'
import Notes from '../views/Notes.vue'
import Login from '../views/Login.vue'
import Shop from '../shop/Shop.vue'

Vue.use(VueRouter)

const routes = [
  {path: '/', name: 'home', component: Home}, //首页
  {path: '/about', name: 'about', component: About},  //我的
  {path: '/search', name: 'search', component: Search},   //搜索
  {path: '/notes', name: 'notes', component: Notes},   //订单
  {path: '/login', name: 'login', component: Login},   //登录
  {path: '/shop', name: 'shop', component: Shop}   //店铺
  
 
  
]

const router = new VueRouter({
  routes
})

export default router

